'''
题目二：新建“test2”Python文件：使用turtle画出“奥运五环”，并在合适的区域写出自己的“学号_姓名”信息(字号：16，字体：Arial)。（20分）
'''
import turtle
turtle.showturtle()
turtle.speed(50)
turtle.width(5)
turtle.color("blue")
turtle.circle(50)
turtle.penup()

turtle.goto(110, 0)
turtle.pendown()
turtle.color("black")
turtle.circle(50)
turtle.penup()

turtle.goto(220, 0)
turtle.pendown()
turtle.color("red")
turtle.circle(50)
turtle.penup()

turtle.goto(55, -50)
turtle.pendown()
turtle.color("yellow")
turtle.circle(50)
turtle.penup()


turtle.goto(165, -50)
turtle.pendown()
turtle.color("green")
turtle.circle(50)

# 写名字
pensize = 50 #画笔宽度


turtle.screensize(500, 500, "#66ccff")


a = turtle.window_width()
b = turtle.window_height()

#初始化画笔
turtle.pensize(pensize)
turtle.pencolor("#FF0000")
turtle.penup()
#画笔宽度初始化



turtle.write("231118019_李民康",move=False,align='center',font=("Arial",16,'normal'))

turtle.exitonclick() #点击画面时画布才会消失
#turtle.mainloop() #这种方法会使得后面的代码无法运行
#turtle.done() #这种方法会使得后面的代码无法运行